	<div id="sidebars">
		<ul class="submenu">

			<li>
				<div id="rss-links" class="twitter">
				<p><a href="http://twitter.com/blogates">Follow Blogates</a></p>
				</div>
			</li>
<li><h4>Join Conversation</h4>
<p><a href="http://penote.com/" title="Says and share"><img src="http://lh3.googleusercontent.com/_Xv6mxvviAxI/TXzLorlEOiI/AAAAAAAAAg8/8hIisi_hZ2k/s800/conver_160.jpg" width="140px" border="none" /></a></p>
</li>
			<?php if (is_user_logged_in()) { ?>
			<li>
			<h4>You may help</h4>
<p><a href="http://hope140.org/" title="Twitter hope140">Twitter hope140</a> Disaster in the Gulf Listen, learn, and lend a tweet to help<br />
<a href="http://donate.wvus.org/OA_HTML/xxwvibeCZzpEntry.jsp?go=sponsor&site=WVDONATIONS&respid=22372&language=US" title="Help WorldVision Kids">WorldVision Kids</a> Your child sponsorship will help a child in need to experience life in all its fullness.<br />
Support <a href="http://www.redcross.org/en/" title="Support Red Cross">Red Cross</a> each month and see the difference you can make to people in need.</p>
<p>Of course, if you simply want to contribute financially to the Blogates, we welcome any and all donations to allowed us to make Blogates always free. <a href="http://bit.ly/c1gSXs" title="Click here to make your contribution.">I want make donation</a>.</p>

			</li>
			<?php } ?>


			<li>
			<?php
			$recentPosts = new WP_Query();
			$recentPosts->query('showposts=5');

			if ( have_posts() ) : ?>
				<h4>What's news?</h4><ul>
				<?php //while ( have_posts() ) : the_post(); ?>
				<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
					<li><a href="<?php the_permalink() ?>" rel="noffolow" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title();?></a></li>
				<?php endwhile; ?>
				</ul>
			<?php endif; ?>
			</li>

			<?php
			if ( is_home() ) {
				echo '<li><h4>Latest Blog</h4>';
				$blogs = get_last_updated(' ', 0, 20);
				if( is_array( $blogs ) ) {
					echo '<ul>';
					foreach( $blogs as $details ) {
						?><li><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>" rel="nofollow" title="<?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a></li><?php
					}
					echo '</ul>';
				}
				echo '</li>';
			}
			?>

<li><h4>Share Your Recipe</h4>
<p>Share your own recipe with the community network for food, recipes, cooking. <a href="http://perfectscook.com/wp-login.php?action=register">Submit Now!</a></p>
</li>
<!--
<li><h4>Share SEO Tips</h4>
<p>If you have a SEO article don't hesitate to submit and share to other. <a href="http://totasecu.com/wp-login.php?action=register">Submit Now!</a></p>
</li>
-->

			<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('right-sidebar') ) : ?>

			<?php if ( is_404() || is_category() || is_day() || is_month() ||
						is_year() || is_search() || is_paged() ) {
			?> <li>

			<?php /* If this is a 404 page */ if (is_404()) { ?>
			<?php /* If this is a category archive */ } elseif (is_category()) { ?>
			<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for the day <?php the_time('l, F jS, Y'); ?>.</p>

			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for <?php the_time('F, Y'); ?>.</p>

			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for the year <?php the_time('Y'); ?>.</p>

			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
			<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

			<?php } ?>

			</li> <?php }?>

			<?php endif; ?>
				<li></li>
		</ul>
	</div>